package com.softeem.model;

import com.softeem.entity.Info;
import com.softeem.entity.Staff;
import com.softeem.entity.User;
import com.softeem.entity.WorkOrder;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class WorkOrderModel extends WorkOrder {
    private User user;
    private Staff staff;
    private List<Info> infos;

    @Override
    public String toString() {
        return "WorkOrderModel{" +
                super.toString() +
                ", user=" + user +
                ", staff=" + staff +
                ", infos=" + infos +
                '}';
    }
}
